home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 440 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  801 b 

  1. Path: news.tu-chemnitz.de!news
  2. From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Using ARGV on VAX - how?
  5. Date: 5 Jan 96 11:23:17 GMT
  6. Organization: University of Technology Chemnitz, FRG
  7. Message-ID: <4cj1ot$rnt@pyrrhus-f.hrz.tu-chemnitz.de>
  8. References: <1996Jan5.091249.1@vax.sbu.ac.uk>
  9. NNTP-Posting-Host: prom.hrz.tu-chemnitz.de
  10.  
  11. tonyh@vax.sbu.ac.uk writes:
  12. >I include stdio.h and stdlib.h, the file is called myfile.c :
  13.  
  14. >main (int argc, char *argv[])
  15. >{
  16. >    if (argv != 2) {
  17.  
  18. mybe you meant
  19.      if (argc != 2) {
  20.  
  21. >     printf("you forgot to enter your name");
  22. >    exit(1);
  23. >    }
  24. >    printf("Hello %s", argv[1]);
  25. >}
  26.  
  27. h.f.s.
  28. --
  29. Hans Friedrich Steffani
  30. Institut fuer Elektrische Maschinen und Antriebe
  31. TU Chemnitz-Zwickau
  32. e-mail: hans.steffani@e-technik.tu-chemnitz.de
  33.